package models;

import java.util.List;

import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;

import play.db.jpa.FileAttachment;
import play.db.jpa.Model;

@Entity
public class TestRun extends Model {
	@ManyToOne
	public Instructor staff;

	public int type;

	public int process;

	public long startTime;

	public long endTime;

	@Embedded
	public FileAttachment test;

	@ManyToOne
	public Assignment assignment;

	@ManyToMany
	public List<Tutorial> tutorials;

	@ManyToMany
	public List<Submission> submissions;
}
